package cn.fintecher.gis.model.session;

import cn.fintecher.gis.entity.Department;
import cn.fintecher.gis.entity.RoleInfo;
import cn.fintecher.gis.enums.UserTitle;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Set;

@Data
public class SessionModel implements Serializable {
    private String id;

    @ApiModelProperty(notes = "用户名")
    private String username;

    @ApiModelProperty(notes = "密码")
    private String password;

    @ApiModelProperty(notes = "用户所在部门的id")
    private Department department;

    @ApiModelProperty(notes = "职称")
    private UserTitle userTitle;

    @ApiModelProperty(notes = "用户所拥有的角色")
    private Set<SessionRole> roles;
}
